package com.paad.todolist;

public class Unit {
	double speed;
	int dmgDie;
	int teamNumber;
	int dmgMod;
	int defense;
	double range;
	String name;
	
	public Unit(int d, int s, int dd, int dm, int r, String nm, int teamnum){
		speed = s;
		dmgDie = dd;
		dmgMod = dm;
		defense = d;
		range = r;
		name = nm;
		teamNumber = teamnum;
	}
	
	public Unit(String nm){
		if(nm.equals("swordsman")){
			speed = 2.5;
			dmgDie = 6;
			dmgMod = 1;
			defense = 4;
			range = 1.5;
			name = "swordsman";
		}else if(nm.equals("archer")){
			speed = 2;
			dmgDie = 6;
			dmgMod = 0;
			defense = 4;
			range = 4;
			name = "archer";
		}else if(nm.equals("cavalry")){
			speed = 4;
			dmgDie = 8;
			dmgMod = 0;
			defense = 5;
			range = 1.5;
			name = "cavalry";
		}
	}
	
	public Unit(){
		speed = 6;
		dmgDie = 6;
		dmgMod = 0;
		defense = 4;
		range = 12;
		name = "rifleman";
	}
	
	
	
	
	
}
